package crew.blt.handsound.client.webgl.element;

import crew.blt.handsound.client.webgl.property.PropertyFactory;

/**
 *
 * SceneJS example :
 * <p>
 *	type : "sphere",<br/>
 *	radius: 2,<br/>
 *	slices:20,<br/>
 *	rings:20
 *
 * @author blt
 *
 */
public class SphereElement extends Element {

	public SphereElement(String id, boolean readValues) {
		super(id);
		addProperty(PropertyFactory.createFloatProperty("radius"),readValues);
		addProperty(PropertyFactory.createFloatProperty("slices"),readValues);
		addProperty(PropertyFactory.createFloatProperty("rings"),readValues);
	}

	@Override
	public String getElementType() {
		return "sphere";
	}
}
